package com.yic.module.mes.controller.admin.itemproduce.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import java.time.LocalDateTime;
import java.time.LocalDateTime;

import com.alibaba.excel.annotation.ExcelProperty;
import com.yic.framework.excel.core.annotations.DictFormat;
import com.yic.framework.excel.core.convert.DictConvert;

import javax.validation.constraints.NotNull;


/**
 * 产品生产信息 Excel VO
 *
 * @author 系统管理员
 */
@Data
public class ItemProduceExcelVO {

    @ExcelProperty("序号")
    private Long id;

    @ExcelProperty("工厂")
    private Long factoryId;


    @ExcelProperty("生产车间")
    private Long workshopId;

    @ExcelProperty("产品信息")
    private Long itemId;

    @ExcelProperty(value = "质检模式", converter = DictConvert.class)
    @DictFormat("quality_type") // TODO 代码优化：建议设置到对应的 XXXDictTypeConstants 枚举类中
    private Integer qualityType;

    @ExcelProperty(value = "领料模式", converter = DictConvert.class)
    @DictFormat("picking_type") // TODO 代码优化：建议设置到对应的 XXXDictTypeConstants 枚举类中
    private Integer pickingType;

    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

}
